#pragma once

#include <cmath>
#include "CommonNamespace.h"

BEGIN_OPT_NAMESPACE

class OPT_API math
{
public:
	static const double Tolerance;

	static inline double sqr(double x) { return x * x; }
	static inline bool equal(double a, double b) { return fabs(a - b) < Tolerance; }
};


END_OPT_NAMESPACE